<?xml version='1.0' encoding='UTF-8' ?>
<!DOCTYPE composition PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<ui:composition xmlns:ui="http://java.sun.com/jsf/facelets"
                template="/resources/template/template.xhtml"
                xmlns:h="http://java.sun.com/jsf/html"
                xmlns:p="http://primefaces.org/ui"
                xmlns:f="http://java.sun.com/jsf/core"
                xmlns:ca="http://java.sun.com/jsf/composite/cashSummery"                
                xmlns:pe="http://primefaces.org/ui/extensions">

    <ui:define name="content">
        <h:outputStylesheet library="css" name="printing.css"></h:outputStylesheet>

        <h:form id="panelPrint">

            <h:outputStylesheet library="css" name="printing.css"></h:outputStylesheet>
            <p:panel>
                <f:facet name="header" >
                    <h:outputLabel value="Book Keeping Summary Without Pro (DAY)"  styleClass="noPrintButton" />
                    <h:panelGrid columns="2"  styleClass="noPrintButton" id="pan">
                        <h:outputLabel value="Report"/>
                        <p:selectOneMenu value="#{quickBookReportController.report}" >
                            <f:selectItem itemLabel="Select Report"/>
                            <f:selectItem itemLabel="Daily Return" itemValue="1"/>
                            <f:selectItem itemLabel="Pharmacy GRN and Purchase Bills" itemValue="2"/>
                            <f:selectItem itemLabel="Store GRN and Purchase Bills" itemValue="3"/>
                            <f:selectItem itemLabel="Inward Income" itemValue="4"/>
                            <f:selectItem itemLabel="OPD Credit" itemValue="5"/>
                            <f:selectItem itemLabel="Pharmacy Credit" itemValue="6"/>
                            <f:ajax event="change" execute="@this" render="tbl pan" listener="#{quickBookReportController.listnerReportNameChange}" />
                        </p:selectOneMenu>
                        <h:outputLabel value="BHT Type" rendered="#{quickBookReportController.report eq '4'}" />
                        <p:selectOneMenu   id="cmbBhtType" value="#{quickBookReportController.reportKeyWord.paymentMethod}" rendered="#{quickBookReportController.report eq '4'}" >
                            <f:selectItem itemLabel="All BHT Types" />                           
                            <f:selectItems value="#{enumController.paymentMethodForAdmission}" />
                        </p:selectOneMenu>
                        <p:outputLabel value="Admission Type" rendered="#{quickBookReportController.report eq '4'}"/>
                        <p:selectOneMenu value="#{quickBookReportController.reportKeyWord.admissionType}" rendered="#{quickBookReportController.report eq '4'}">
                            <f:selectItem itemLabel="All Admission Type"/>
                            <f:selectItems  value="#{inwardReportController.admissionty}" var="myItem" 
                                            itemValue="#{myItem}" itemLabel="#{myItem.name}"></f:selectItems>
                        </p:selectOneMenu>
                        <p:outputLabel value="Income Account" rendered="#{quickBookReportController.report eq '4'}"/>
                        <p:selectOneRadio id="console" value="#{quickBookReportController.reportKeyWord.string}" rendered="#{quickBookReportController.report eq '4'}" >
                            <f:selectItem itemLabel="Normal Admission" itemValue="0" />
                            <f:selectItem itemLabel="Green Sheet" itemValue="1" />
                            <f:selectItem itemLabel="Dialysis" itemValue="2" />
                        </p:selectOneRadio>
                        <h:outputLabel value="From Date"/>
                        <p:calendar id="frmDate" value="#{quickBookReportController.fromDate}" navigator="true"  
                                    pattern="dd MM yyyy" />
                        <h:outputLabel value="To Date" />
                        <p:calendar id="toDate" value="#{quickBookReportController.toDate}" navigator="true"  
                                    pattern="dd MM yyyy"/>
                        <h:outputLabel value="Dialysis" rendered="#{quickBookReportController.report eq '4'}" />
                        <p:selectBooleanCheckbox value="#{quickBookReportController.reportKeyWord.bool1}" rendered="#{quickBookReportController.report eq '4'}" >
                            <!--<f:ajax event="change" execute="@this" render="pan" listener="#{quickBookReportController.listnerBool1Change()}" />-->
                        </p:selectBooleanCheckbox>
                        <h:outputLabel value="Green Sheet" rendered="#{quickBookReportController.report eq '4'}" />
                        <p:selectBooleanCheckbox value="#{quickBookReportController.reportKeyWord.bool2}" rendered="#{quickBookReportController.report eq '4'}" >
                            <!--<f:ajax event="change" execute="@this" render="pan" listener="#{quickBookReportController.listnerBool2Change()}" />-->
                        </p:selectBooleanCheckbox>
                        <h:outputLabel value="Select Institution"/>
                        <p:autoComplete completeMethod="#{institutionController.completeCompany}" required="true" 
                                        forceSelection="true"
                                        requiredMessage="Please Select Institution" 
                                        value="#{quickBookReportController.institution}"
                                        var="pta" itemLabel="#{pta.name}" itemValue="#{pta}" />
                    </h:panelGrid>

                    <h:panelGrid columns="5">
                        <p:spacer width="110" height="1"/>
                        <p:commandButton value="Refresh" ajax="false"  styleClass="noPrintButton" style="float: right;"
                                         action="#{quickBookReportController.createQBFormat()}"/>
                        <p:commandButton ajax="false" value="Print"  styleClass="noPrintButton" style="float: right;"  >
                            <p:printer target="panelPrint" />
                        </p:commandButton>
                        <p:commandButton value="Excel" ajax="false" styleClass="noPrintButton" style="float: right;" rendered="#{quickBookReportController.report ne '2'}">
                            <!--<p:dataExporter type="csv" target="tbl" fileName="QB_Export"/>-->
                            <pe:exporter type="xlsx" target="tbl" fileName="QB_Export"/>
                        </p:commandButton>
                        <p:commandButton value="Excel" ajax="false" styleClass="noPrintButton" style="float: right;" rendered="#{quickBookReportController.report eq '2'}">
                            <!--<p:dataExporter type="csv" target="tbl" fileName="QB_Export"/>-->
                            <pe:exporter type="xlsx" target="tbl1" fileName="QB_Export"/>
                        </p:commandButton>
                    </h:panelGrid>


                </f:facet>
            </p:panel>

            <p:panel styleClass="noBorder summeryBorder">
                <p:dataTable id="tbl" value="#{quickBookReportController.quickBookFormats}" editable="true" var="qbf" rendered="#{quickBookReportController.report ne '2'}">
                    <p:columnGroup  type="header" >
                        <p:row>
                            <p:column headerText="!TRANS"/>
                            <p:column headerText="TRNSTYPE" />
                            <p:column headerText="DATE" />
                            <p:column headerText="ACCNT" />
                            <p:column headerText="NAME" />
                            <p:column headerText="INVITEMTYPE" rendered="#{quickBookReportController.report ne '2'}"/>
                            <p:column headerText="INVITEM" rendered="#{quickBookReportController.report ne '2'}" />
                            <p:column headerText="AMOUNT" />
                            <p:column headerText="DOCNUM" />
                            <!--<p:column headerText="PONUM"/>-->
                            <p:column headerText="CLASS" />
                            <p:column headerText="MEMO"/>
                            <p:column headerText="CUSTFLD1"/>
                            <p:column headerText="CUSTFLD2"/>
                            <p:column headerText="CUSTFLD3"/>
                            <p:column headerText="CUSTFLD4"/>
                            <p:column headerText="CUSTFLD5"/>
                            <p:column headerText="CUSTFLD6"/>
                            <p:column headerText=""/>
                        </p:row>
                        <p:row>
                            <p:column headerText="!SPL"/>
                            <p:column headerText="TRNSTYPE" />
                            <p:column headerText="DATE" />
                            <p:column headerText="ACCNT" />
                            <p:column headerText="NAME" />
                            <p:column headerText="INVITEMTYPE" rendered="#{quickBookReportController.report ne '2'}" />
                            <p:column headerText="INVITEM" rendered="#{quickBookReportController.report ne '2'}"/>
                            <p:column headerText="AMOUNT" />
                            <p:column headerText="DOCNUM" />
                            <!--<p:column headerText="PONUM"/>-->
                            <p:column headerText="CLASS" />
                            <p:column headerText="MEMO"/>
                            <p:column headerText="CUSTFLD1"/>
                            <p:column headerText="CUSTFLD2"/>
                            <p:column headerText="CUSTFLD3"/>
                            <p:column headerText="CUSTFLD4"/>
                            <p:column headerText="CUSTFLD5"/>
                            <p:column headerText="CUSTFLD6"/>
                            <p:column headerText=""/>
                        </p:row>
                        <p:row>
                            <p:column headerText="!ENDTRNS"/>
                            <p:column headerText="" />
                            <p:column headerText="" />
                            <p:column headerText="" />
                            <p:column headerText="" />
                            <p:column headerText="" />
                            <p:column headerText="" rendered="#{quickBookReportController.report ne '2'}"/>
                            <p:column headerText="" rendered="#{quickBookReportController.report ne '2'}"/>
                            <p:column headerText="" />
                            <p:column headerText=""/>
                            <!--<p:column headerText="" />-->
                            <p:column headerText=""/>
                            <p:column headerText=""/>
                            <p:column headerText=""/>
                            <p:column headerText=""/>
                            <p:column headerText=""/>
                            <p:column headerText=""/>
                            <p:column headerText=""/>
                            <p:column headerText=""/>
                        </p:row>
                    </p:columnGroup> 
                    <p:column>
<!--                        <p:cellEditor rendered="#{qbf.editRowType}">  
                            <f:facet name="output"> 
                                <h:outputLabel value="#{qbf.rowType}" />
                            </f:facet>  
                            <f:facet name="input">  
                                <p:inputText value="#{qbf.rowType}" />
                            </f:facet>  
                        </p:cellEditor>  -->
                        <p:outputLabel value="#{qbf.rowType}" />
                    </p:column>
                    <p:column>
<!--                        <p:cellEditor rendered="#{qbf.editTrnsType}">  
                            <f:facet name="output"> 
                                <h:outputLabel value="#{qbf.trnsType}" />
                            </f:facet>  
                            <f:facet name="input">  
                                <p:inputText value="#{qbf.trnsType}" />
                            </f:facet>  
                        </p:cellEditor>  -->
                        <p:outputLabel value="#{qbf.trnsType}" />
                    </p:column>
                    <p:column>
<!--                        <p:cellEditor rendered="#{qbf.editDate}">  
                            <f:facet name="output"> 
                                <h:outputLabel value="#{qbf.date}" />
                            </f:facet>  
                            <f:facet name="input">  
                                <p:inputText value="#{qbf.date}" />
                            </f:facet>  
                        </p:cellEditor>  -->
                        <p:outputLabel value="#{qbf.date}" />
                    </p:column>
                    <p:column>
<!--                        <p:cellEditor rendered="#{qbf.editAccnt}">  
                            <f:facet name="output"> 
                                <h:outputLabel value="#{qbf.accnt}" />
                            </f:facet>  
                            <f:facet name="input">  
                                <p:inputText value="#{qbf.accnt}" />
                            </f:facet>  
                        </p:cellEditor>  -->
                        <p:outputLabel value="#{qbf.accnt}" />
                    </p:column>
                    <p:column>
<!--                        <p:cellEditor rendered="#{qbf.editName}">  
                            <f:facet name="output"> 
                                <h:outputLabel value="#{qbf.name}" />
                            </f:facet>  
                            <f:facet name="input">  
                                <p:inputText value="#{qbf.name}" />
                            </f:facet>  
                        </p:cellEditor>  -->
                        <p:outputLabel value="#{qbf.name}" />
                    </p:column>
                    <p:column rendered="#{quickBookReportController.report ne '2'}">
<!--                        <p:cellEditor rendered="#{qbf.editInvItemType}">  
                            <f:facet name="output"> 
                                <h:outputLabel value="#{qbf.invItemType}" />
                            </f:facet>  
                            <f:facet name="input">  
                                <p:inputText value="#{qbf.invItemType}" />
                            </f:facet>  
                        </p:cellEditor>  -->
                        <p:outputLabel value="#{qbf.invItemType}" />
                    </p:column>
                    <p:column rendered="#{quickBookReportController.report ne '2'}">
<!--                        <p:cellEditor rendered="#{qbf.editInvItem}">  
                            <f:facet name="output"> 
                                <h:outputLabel value="#{qbf.invItem}" />
                            </f:facet>  
                            <f:facet name="input">  
                                <p:inputText value="#{qbf.invItem}" />
                            </f:facet>  
                        </p:cellEditor>  -->
                        <p:outputLabel value="#{qbf.invItem}" />
                    </p:column>
                    <p:column styleClass="numberCol" >
<!--                        <p:cellEditor rendered="#{qbf.editAmount}">  
                            <f:facet name="output"> 
                                <p:outputLabel value="#{qbf.amount}" rendered="#{qbf.amount ne 0.0}">
                                    <f:convertNumber pattern="0.00" />
                                </p:outputLabel>
                                <p:outputLabel value="" rendered="#{qbf.amount eq 0.0}"/>
                            </f:facet>  
                            <f:facet name="input">  
                                <p:inputText value="#{qbf.amount}" />
                            </f:facet>  
                        </p:cellEditor>  -->
                        <p:outputLabel value="#{qbf.amount}" rendered="#{qbf.amount ne 0.0}">
                            <f:convertNumber pattern="0.00" />
                        </p:outputLabel>
                        <p:outputLabel value="" rendered="#{qbf.amount eq 0.0}"/>
                    </p:column>
                    <p:column>
<!--                        <p:cellEditor rendered="#{qbf.editDocNum}">  
                            <f:facet name="output"> 
                                <h:outputLabel value="#{qbf.docNum}" />
                            </f:facet>  
                            <f:facet name="input">  
                                <p:inputText value="#{qbf.docNum}" />
                            </f:facet>  
                        </p:cellEditor>  -->
                        <p:outputLabel value="#{qbf.docNum}" />
                    </p:column>
                    <!--                    <p:column>
                                            <p:cellEditor rendered="#{qbf.editPoNum}">  
                                                <f:facet name="output"> 
                                                    <h:outputLabel value="#{qbf.poNum}" />
                                                </f:facet>  
                                                <f:facet name="input">  
                                                    <p:inputText value="#{qbf.poNum}" />
                                                </f:facet>  
                                            </p:cellEditor>  
                                            <p:outputLabel value="#{qbf.poNum}"/>
                                        </p:column>-->
                    <p:column>
<!--                        <p:cellEditor rendered="#{qbf.editQbClass}">  
                            <f:facet name="output"> 
                                <h:outputLabel value="#{qbf.qbClass}" />
                            </f:facet>  
                            <f:facet name="input">  
                                <p:inputText value="#{qbf.qbClass}" />
                            </f:facet>  
                        </p:cellEditor>  -->
                        <p:outputLabel value="#{qbf.qbClass}"/>
                    </p:column>
                    <p:column>
<!--                        <p:cellEditor rendered="#{qbf.editMemo}">  
                            <f:facet name="output"> 
                                <h:outputLabel value="#{qbf.memo}" />
                            </f:facet>  
                            <f:facet name="input">  
                                <p:inputText value="#{qbf.memo}" />
                            </f:facet>  
                        </p:cellEditor>  -->
                        <p:outputLabel value="#{qbf.memo}" />
                    </p:column>
                    <p:column>
<!--                        <p:cellEditor rendered="#{qbf.editCustFld1}">  
                            <f:facet name="output"> 
                                <h:outputLabel value="#{qbf.custFld1}" />
                            </f:facet>  
                            <f:facet name="input">  
                                <p:inputText value="#{qbf.custFld1}" />
                            </f:facet>  
                        </p:cellEditor>  -->
                        <p:outputLabel value="#{qbf.custFld1}"/>
                    </p:column>
                    <p:column>
<!--                        <p:cellEditor rendered="#{qbf.editCustFld2}">  
                            <f:facet name="output"> 
                                <h:outputLabel value="#{qbf.custFld2}" />
                            </f:facet>  
                            <f:facet name="input">  
                                <p:inputText value="#{qbf.custFld2}" />
                            </f:facet>  
                        </p:cellEditor>  -->
                        <p:outputLabel value="#{qbf.custFld2}" />
                    </p:column>
                    <p:column>
<!--                        <p:cellEditor rendered="#{qbf.editCustFld3}">  
                            <f:facet name="output"> 
                                <h:outputLabel value="#{qbf.custFld3}" />
                            </f:facet>  
                            <f:facet name="input">  
                                <p:inputText value="#{qbf.custFld3}" />
                            </f:facet>  
                        </p:cellEditor>  -->
                        <p:outputLabel value="#{qbf.custFld3}"/>
                    </p:column>
                    <p:column>
<!--                        <p:cellEditor rendered="#{qbf.editCustFld4}">  
                            <f:facet name="output"> 
                                <h:outputLabel value="#{qbf.custFld4}" />
                            </f:facet>  
                            <f:facet name="input">  
                                <p:inputText value="#{qbf.custFld4}" />
                            </f:facet>  
                        </p:cellEditor>  -->
                        <p:outputLabel value="#{qbf.custFld4}"/>
                    </p:column>
                    <p:column>
<!--                        <p:cellEditor rendered="#{qbf.editCustFld5}">  
                            <f:facet name="output"> 
                                <h:outputLabel value="#{qbf.custFld5}" />
                            </f:facet>  
                            <f:facet name="input">  
                                <p:inputText value="#{qbf.custFld5}" />
                            </f:facet>  
                        </p:cellEditor>  -->
                        <p:outputLabel value="#{qbf.custFld5}" />
                    </p:column>
                    <p:column>
<!--                        <p:cellEditor rendered="#{qbf.editCustFld6}">  
                            <f:facet name="output"> 
                                <h:outputLabel value="#{qbf.custFld6}" />
                            </f:facet>  
                            <f:facet name="input">  
                                <p:inputText value="#{qbf.custFld6}" />
                            </f:facet>  
                        </p:cellEditor>  -->
                        <p:outputLabel value="#{qbf.custFld6}" />
                    </p:column>
                    <!--                    <p:column style="width:6%" exportable="false">  
                                            <p:rowEditor rendered="#{qbf.editQbClass or qbf.editAccnt or qbf.editAmount or qbf.editCustFld1 or qbf.editCustFld2 
                                             or qbf.editCustFld3 or qbf.editCustFld4 or qbf.editCustFld5 or qbf.editDate or qbf.editDocNum
                                             or qbf.editInvItem or qbf.editInvItemType or qbf.editMemo or qbf.editName or qbf.editPoNum
                                             or qbf.editRowType or qbf.editTrnsType}"> 
                    </p:rowEditor>
                </p:column>  -->
                </p:dataTable>
                <p:dataTable id="tbl1" value="#{quickBookReportController.quickBookFormats}" editable="true" var="qbf" rendered="#{quickBookReportController.report eq '2'}">
                    <p:columnGroup  type="header" >
                        <p:row>
                            <p:column headerText="!TRANS"/>
                            <p:column headerText="TRNSTYPE" />
                            <p:column headerText="DATE" />
                            <p:column headerText="ACCNT" />
                            <p:column headerText="NAME" />
                            <p:column headerText="AMOUNT" />
                            <p:column headerText="DOCNUM" />
                            <!--<p:column headerText="PONUM"/>-->
                            <p:column headerText="CLASS" />
                            <p:column headerText="MEMO"/>
                            <p:column headerText="CUSTFLD1"/>
                            <p:column headerText="CUSTFLD2"/>
                            <p:column headerText="CUSTFLD3"/>
                            <p:column headerText="CUSTFLD4"/>
                            <p:column headerText="CUSTFLD5"/>
                            <p:column headerText="CUSTFLD6"/>
                            <p:column headerText=""/>
                        </p:row>
                        <p:row>
                            <p:column headerText="!SPL"/>
                            <p:column headerText="TRNSTYPE" />
                            <p:column headerText="DATE" />
                            <p:column headerText="ACCNT" />
                            <p:column headerText="NAME" />
                            <p:column headerText="AMOUNT" />
                            <p:column headerText="DOCNUM" />
                            <!--<p:column headerText="PONUM"/>-->
                            <p:column headerText="CLASS" />
                            <p:column headerText="MEMO"/>
                            <p:column headerText="CUSTFLD1"/>
                            <p:column headerText="CUSTFLD2"/>
                            <p:column headerText="CUSTFLD3"/>
                            <p:column headerText="CUSTFLD4"/>
                            <p:column headerText="CUSTFLD5"/>
                            <p:column headerText="CUSTFLD6"/>
                            <p:column headerText=""/>
                        </p:row>
                        <p:row>
                            <p:column headerText="!ENDTRNS"/>
                            <p:column headerText="" />
                            <p:column headerText="" />
                            <p:column headerText="" />
                            <p:column headerText="" />
                            <p:column headerText="" />
                            <p:column headerText="" />
                            <p:column headerText=""/>
                            <!--<p:column headerText="" />-->
                            <p:column headerText=""/>
                            <p:column headerText=""/>
                            <p:column headerText=""/>
                            <p:column headerText=""/>
                            <p:column headerText=""/>
                            <p:column headerText=""/>
                            <p:column headerText=""/>
                            <p:column headerText=""/>
                        </p:row>
                    </p:columnGroup> 
                    <p:column>
<!--                        <p:cellEditor rendered="#{qbf.editRowType}">  
                            <f:facet name="output"> 
                                <h:outputLabel value="#{qbf.rowType}" />
                            </f:facet>  
                            <f:facet name="input">  
                                <p:inputText value="#{qbf.rowType}" />
                            </f:facet>  
                        </p:cellEditor>  -->
                        <p:outputLabel value="#{qbf.rowType}" />
                    </p:column>
                    <p:column>
<!--                        <p:cellEditor rendered="#{qbf.editTrnsType}">  
                            <f:facet name="output"> 
                                <h:outputLabel value="#{qbf.trnsType}" />
                            </f:facet>  
                            <f:facet name="input">  
                                <p:inputText value="#{qbf.trnsType}" />
                            </f:facet>  
                        </p:cellEditor>  -->
                        <p:outputLabel value="#{qbf.trnsType}" />
                    </p:column>
                    <p:column>
<!--                        <p:cellEditor rendered="#{qbf.editDate}">  
                            <f:facet name="output"> 
                                <h:outputLabel value="#{qbf.date}" />
                            </f:facet>  
                            <f:facet name="input">  
                                <p:inputText value="#{qbf.date}" />
                            </f:facet>  
                        </p:cellEditor>  -->
                        <p:outputLabel value="#{qbf.date}" />
                    </p:column>
                    <p:column>
<!--                        <p:cellEditor rendered="#{qbf.editAccnt}">  
                            <f:facet name="output"> 
                                <h:outputLabel value="#{qbf.accnt}" />
                            </f:facet>  
                            <f:facet name="input">  
                                <p:inputText value="#{qbf.accnt}" />
                            </f:facet>  
                        </p:cellEditor>  -->
                        <p:outputLabel value="#{qbf.accnt}" />
                    </p:column>
                    <p:column>
<!--                        <p:cellEditor rendered="#{qbf.editName}">  
                            <f:facet name="output"> 
                                <h:outputLabel value="#{qbf.name}" />
                            </f:facet>  
                            <f:facet name="input">  
                                <p:inputText value="#{qbf.name}" />
                            </f:facet>  
                        </p:cellEditor>  -->
                        <p:outputLabel value="#{qbf.name}" />
                    </p:column>
                    <p:column rendered="#{quickBookReportController.report ne '2'}">
<!--                        <p:cellEditor rendered="#{qbf.editInvItemType}">  
                            <f:facet name="output"> 
                                <h:outputLabel value="#{qbf.invItemType}" />
                            </f:facet>  
                            <f:facet name="input">  
                                <p:inputText value="#{qbf.invItemType}" />
                            </f:facet>  
                        </p:cellEditor>  -->
                        <p:outputLabel value="#{qbf.invItemType}" />
                    </p:column>
                    <p:column rendered="#{quickBookReportController.report ne '2'}">
<!--                        <p:cellEditor rendered="#{qbf.editInvItem}">  
                            <f:facet name="output"> 
                                <h:outputLabel value="#{qbf.invItem}" />
                            </f:facet>  
                            <f:facet name="input">  
                                <p:inputText value="#{qbf.invItem}" />
                            </f:facet>  
                        </p:cellEditor>  -->
                        <p:outputLabel value="#{qbf.invItem}" />
                    </p:column>
                    <p:column styleClass="numberCol" >
<!--                        <p:cellEditor rendered="#{qbf.editAmount}">  
                            <f:facet name="output"> 
                                <p:outputLabel value="#{qbf.amount}" rendered="#{qbf.amount ne 0.0}">
                                    <f:convertNumber pattern="0.00" />
                                </p:outputLabel>
                                <p:outputLabel value="" rendered="#{qbf.amount eq 0.0}"/>
                            </f:facet>  
                            <f:facet name="input">  
                                <p:inputText value="#{qbf.amount}" />
                            </f:facet>  
                        </p:cellEditor>  -->
                        <p:outputLabel value="#{qbf.amount}" rendered="#{qbf.amount ne 0.0}">
                            <f:convertNumber pattern="0.00" />
                        </p:outputLabel>
                        <p:outputLabel value="" rendered="#{qbf.amount eq 0.0}"/>
                    </p:column>
                    <p:column>
<!--                        <p:cellEditor rendered="#{qbf.editDocNum}">  
                            <f:facet name="output"> 
                                <h:outputLabel value="#{qbf.docNum}" />
                            </f:facet>  
                            <f:facet name="input">  
                                <p:inputText value="#{qbf.docNum}" />
                            </f:facet>  
                        </p:cellEditor>  -->
                        <p:outputLabel value="#{qbf.docNum}" />
                    </p:column>
                    <!--                    <p:column>
                                            <p:cellEditor rendered="#{qbf.editPoNum}">  
                                                <f:facet name="output"> 
                                                    <h:outputLabel value="#{qbf.poNum}" />
                                                </f:facet>  
                                                <f:facet name="input">  
                                                    <p:inputText value="#{qbf.poNum}" />
                                                </f:facet>  
                                            </p:cellEditor>  
                                            <p:outputLabel value="#{qbf.poNum}"/>
                                        </p:column>-->
                    <p:column>
<!--                        <p:cellEditor rendered="#{qbf.editQbClass}">  
                            <f:facet name="output"> 
                                <h:outputLabel value="#{qbf.qbClass}" />
                            </f:facet>  
                            <f:facet name="input">  
                                <p:inputText value="#{qbf.qbClass}" />
                            </f:facet>  
                        </p:cellEditor>  -->
                        <p:outputLabel value="#{qbf.qbClass}"/>
                    </p:column>
                    <p:column>
<!--                        <p:cellEditor rendered="#{qbf.editMemo}">  
                            <f:facet name="output"> 
                                <h:outputLabel value="#{qbf.memo}" />
                            </f:facet>  
                            <f:facet name="input">  
                                <p:inputText value="#{qbf.memo}" />
                            </f:facet>  
                        </p:cellEditor>  -->
                        <p:outputLabel value="#{qbf.memo}" />
                    </p:column>
                    <p:column>
<!--                        <p:cellEditor rendered="#{qbf.editCustFld1}">  
                            <f:facet name="output"> 
                                <h:outputLabel value="#{qbf.custFld1}" />
                            </f:facet>  
                            <f:facet name="input">  
                                <p:inputText value="#{qbf.custFld1}" />
                            </f:facet>  
                        </p:cellEditor>  -->
                        <p:outputLabel value="#{qbf.custFld1}"/>
                    </p:column>
                    <p:column>
<!--                        <p:cellEditor rendered="#{qbf.editCustFld2}">  
                            <f:facet name="output"> 
                                <h:outputLabel value="#{qbf.custFld2}" />
                            </f:facet>  
                            <f:facet name="input">  
                                <p:inputText value="#{qbf.custFld2}" />
                            </f:facet>  
                        </p:cellEditor>  -->
                        <p:outputLabel value="#{qbf.custFld2}" />
                    </p:column>
                    <p:column>
<!--                        <p:cellEditor rendered="#{qbf.editCustFld3}">  
                            <f:facet name="output"> 
                                <h:outputLabel value="#{qbf.custFld3}" />
                            </f:facet>  
                            <f:facet name="input">  
                                <p:inputText value="#{qbf.custFld3}" />
                            </f:facet>  
                        </p:cellEditor>  -->
                        <p:outputLabel value="#{qbf.custFld3}"/>
                    </p:column>
                    <p:column>
<!--                        <p:cellEditor rendered="#{qbf.editCustFld4}">  
                            <f:facet name="output"> 
                                <h:outputLabel value="#{qbf.custFld4}" />
                            </f:facet>  
                            <f:facet name="input">  
                                <p:inputText value="#{qbf.custFld4}" />
                            </f:facet>  
                        </p:cellEditor>  -->
                        <p:outputLabel value="#{qbf.custFld4}"/>
                    </p:column>
                    <p:column>
<!--                        <p:cellEditor rendered="#{qbf.editCustFld5}">  
                            <f:facet name="output"> 
                                <h:outputLabel value="#{qbf.custFld5}" />
                            </f:facet>  
                            <f:facet name="input">  
                                <p:inputText value="#{qbf.custFld5}" />
                            </f:facet>  
                        </p:cellEditor>  -->
                        <p:outputLabel value="#{qbf.custFld5}" />
                    </p:column>
                    <p:column>
<!--                        <p:cellEditor rendered="#{qbf.editCustFld6}">  
                            <f:facet name="output"> 
                                <h:outputLabel value="#{qbf.custFld6}" />
                            </f:facet>  
                            <f:facet name="input">  
                                <p:inputText value="#{qbf.custFld6}" />
                            </f:facet>  
                        </p:cellEditor>  -->
                        <p:outputLabel value="#{qbf.custFld6}" />
                    </p:column>
                    <!--                    <p:column style="width:6%" exportable="false">  
                                            <p:rowEditor rendered="#{qbf.editQbClass or qbf.editAccnt or qbf.editAmount or qbf.editCustFld1 or qbf.editCustFld2 
                                             or qbf.editCustFld3 or qbf.editCustFld4 or qbf.editCustFld5 or qbf.editDate or qbf.editDocNum
                                             or qbf.editInvItem or qbf.editInvItemType or qbf.editMemo or qbf.editName or qbf.editPoNum
                                             or qbf.editRowType or qbf.editTrnsType}"> 
                    </p:rowEditor>
                </p:column>  -->
                </p:dataTable>
            </p:panel>
        </h:form>
    </ui:define>

</ui:composition>

